<%--
  Created by IntelliJ IDEA.
  User: LIKUS
  Date: 2019-12-11
  Time: 15:40:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加回复</title>
</head>
<body>
<center>
    <form action="${pageContext.request.contextPath}/main/add" method="post">
        <%
            String invid = request.getParameter("invid");
            request.setAttribute("invid", invid);
        %>
<table border="1px" cellspacing="0" cellpadding="8px" width="60%" style="text-align: center">
    <input type="hidden" name="invid" value="${requestScope.invid}">
<tr>
    <th colspan="2">添加回复</th>
</tr>
    <tr>
        <th>回复内容：</th>
        <td>
            <textarea name="content" id="" cols="30" rows="10"></textarea>
        </td>
    </tr>
    <tr>
        <th>回复昵称：</th>
        <td>
            <input type="text" name="author">
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <input type="submit" value="提交">
            <input type="button" value="返回" onclick="toBack()">
        </td>
    </tr>
</table>
    </form>
</center>
</body>
<script>
    function toBack() {
        window.location.href="${pageContext.request.contextPath}/main/reply/${requestScope.invid}";
    }
</script>
</html>























